<script src="vue.js"></script>
    <div id="app">
        <div v-mydirective>这是我的插件样式</div>
    </div>
<script>
    let MyPlic={}
    MyPlic.install=function(Vue,Options){
        console.log(Options);
        Vue.directive('mydirective',{
            bind(el,bingding){
                el.style='background-color:#ccc;width:200px;height:100px';
            }
        })
    };
    Vue.use(MyPlic,{someOption:true})
    var ve=new Vue({
        el:'#app',
    });
</script>
